//#include "Context.h"
//#include "BlueprintScriptLibrary/Var.h"
//#include "BlueprintScriptLibrary/ScriptLibrary.h"
//#include "Control.h"
//#include "BlueprintExport.h"
//void Context::OnInit()
//{
//	Control con;
//	static BlueprintScriptLibrary::BlueprintClass c;
//	for (auto i : BlueprintScriptLibrary::BlueprintDataPool::GetInstance()->createInstFuncs)
//	{
//		std::cout << i.first<<"-----------" << std::endl;
//		c.NewMember(i.first, i.second);
//	}
//
////	std::function<Object* ()> f = createInstFuncs;
////	c.NewMember("a", BlueprintScriptLibrary::createInstFuncs["Control"]);
//	c.NewMember("b", BlueprintScriptLibrary::VarBaseType_float);
//	BlueprintScriptLibrary::BlueprintObject o;
//	o.InitFromClass(&c);
//	BlueprintScriptLibrary::VarBaseFloat vbf = 2.33f;
//	o.SetMember("b", &vbf);
//
//
//	auto inst =BlueprintScriptLibrary::BlueprintDataPool::GetInstance();
//	for (auto i : inst->allFunctionObjs)
//	{
//		//std::cout<<i->GetName()<<std::endl;
//		std::cout<<i->name<<std::endl;
//	}
//}
